﻿using System.Collections.Generic;
using SilenthinkContract.Domain;

namespace Web.Areas.Pay.Models
{
    public static class OrderControllerModel
    {
        public class Index
        {
            public UserAccount Account { get; set; }

            public Order Order { get; set; }
            public AuctionOrder AuctionOrder { get; set; }

            public UserTrade Trade { get; set; }

            public IList<PaymentEBank> EBanks { get; set; }
            public IList<PaymentPlatform> Platforms { get; set; }

            public string GetOrderCategory()
            {
                var str = "网 购";
                if(Trade.Id.StartsWith("C"))
                {
                    str = "竞 购";
                }
                return str;
            }
        }
    }
}